#ifndef TEAMFORM_H
#define TEAMFORM_H

#include <QWidget>

namespace Ui {
class TeamForm;
}

class TeamForm : public QWidget
{
    Q_OBJECT

public:
    explicit TeamForm(int ffd,int magic,QWidget *parent = 0);
    ~TeamForm();
    void loadByteToPixmap();
    void appByte(QByteArray barray);
    void newPixmap();
private:
    Ui::TeamForm *ui;
    QPixmap m_pix;
    QByteArray m_barray;
    int m_ffd;//来自句柄
    int m_magic;

protected:
    void paintEvent(QPaintEvent *);
    void closeEvent(QCloseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
    void mouseDoubleClickEvent(QMouseEvent *event);
    void keyPressEvent(QKeyEvent *ev);
};

#endif // TEAMFORM_H
